<h4 class="ellipsis"><?= lang('t.top_accommodations'); ?></h4>

<? $cnt = count($visited); ?>
<? for ($i = 0; $i < $cnt; $i++): ?>
        <? if ($i == 4) break; ?>
        <?
        $href = lang_url('search?dest_hot=' . $visited[$i]->object_name . '&preview=1');

        $thumbnail = HOST_URL_HOTELS . 'gallery/' . $visited[$i]->photo_path . '/thumb_130x130/' . $visited[$i]->photo_name;
        $preview = HOST_URL_HOTELS . 'gallery/' . $visited[$i]->photo_path . '/thumb_454x340/' . $visited[$i]->photo_name;

        $stars = (int) $visited[$i]->object_number_of_stars;
        ?>

        <div class="row clearfix">
            <a class="clearfix HoverImg" href="<?= $href ?>" data-id="<?= $preview ?>" title="<?= $visited[$i]->object_name ?>">


                <img src="<?= $thumbnail ?>" alt="<?= $visited[$i]->object_name ?>" width="90">
            </a>
            <div>

                <h5 class="ellipsis"><a href="<?= $href ?>">
                        <?= $visited[$i]->object_name ?></a></h5>
                <? if ($stars > 0): ?>
                    <div class="stars small black star-<?= $stars ?>"></div>
                <? endif; ?>


                <div class="price ellipsis">
                   <?= currency_sign() ?>  <?= round($specialHotels[$i]->lowest_price) ?>
                    <span class="per_person"> /
                        <?
                        $selling_type = lang('room.selling_type_short');
                        echo $selling_type[(int) $specialHotels[$i]->lowest_selling_billing_type_ID];
                        ?></span>
                </div>
            </div>


        </div>
    <? endfor; ?>